Example: Accessing Attributes |
![]() |
Attributes can be associated with any object |
![]() |
Object can be named through one or more namespaces |
{ ... DSContext ctx = new InitialDSContext(); Attribute attr = ctx.getAttributes(userName).get("unixPassword"); String password = (String)attr.getValues().nextElement(); ... } |